Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EP-3555 add missing processes for callbacks #153

Merged
merged 9 commits into from
Sep 17, 2020
Merged

Conversation

soxofaan
Copy link
Member

Follow up of EP-3521/#149: add missing processes for callbacks (EP-3555)

  • adds a script generator.py to generate python source code that provides functions and methods corresponding to all processes from https://github.com/Open-EO/openeo-processes. (based on Process generation #112, which was still 0.4-style)
  • unifies callback handling logic in DataCube methods that support i: apply_dimension, reduce_dimension, apply_neighborhood, apply, merge_cubes, aggregate_spatial, load_collection
  • unit tests

@soxofaan soxofaan mentioned this pull request Sep 14, 2020
@soxofaan soxofaan force-pushed the EP3555-callbacks branch 2 times, most recently from 8edbef9 to 7a12005 Compare September 15, 2020 14:32

.. code-block:: python

from openeo.processes.processes import absolute, max
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we avoid the double 'processes'? For instance by importing everything from processes.py in the init.py?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will restructure code a bit to have imports like from openeo.processes import max

from openeo.processes.parse import Process, parse_all_from_dir


class PythonRenderer:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: this utility could be kept out of the source tree, to avoid packaging it in the wheel? Just to avoid confusing users.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will move this to openeo.internal

Copy link
Collaborator

@jdries jdries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed, main comment is about the import of processes!

@soxofaan
Copy link
Member Author

pushed extra commit addressing the comments (restructuring files)
let's see what the test runners think

@soxofaan
Copy link
Member Author

both Jenkins and Travis are happy
let's merge

@soxofaan soxofaan merged commit 323ec7c into master Sep 17, 2020
@soxofaan soxofaan deleted the EP3555-callbacks branch September 17, 2020 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants